package hasthi.tools.analyze;

import hasthi.metamodel.resource.ManagedResource;

import java.util.List;

public class RulesSustainedTest {
    public static void main(String[] args) throws Exception {
        String ruleFile = args[0];
        int resourceCount = Integer.parseInt(args[1]);
        double changeProb = Double.parseDouble(args[2]);
        
        RulePerfSuite testSuite = new RulePerfSuite(ruleFile);
        
        List<ManagedResource> resources = RulePerfSuite.createRandomResources(resourceCount, 
                testSuite.getTestingUtils());
        testSuite.runRuleWithoutRest(resources, 200,changeProb);
        System.out.println();
    }
}
